package person.bing.fbcloud.brushQuestions.syn;

/**
 * @author: mengfanbing
 * @date: 2020/5/27 10:36
 */
public class SynMain {
    public static void main(String[] args) throws InterruptedException {
        Thread thread1 = new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    SynCodeBlock.testSynCodeBlock();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        thread1.start();

        Thread thread2 = new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    SynCodeBlock.testSynCodeBlock();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        thread2.start();
    }
}
